﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using HotelManageSystem.Domain.Entities;

namespace HotelManageSystem.Models
{
    public class GodownentryModel
    {
        [ScaffoldColumn(false)]
        public int ID { get; set; }

        [Display(Name = "入库单号"), Required]
        public string GodownentryID { get; set; }

        //进货单价
        [Display(Name = "进货单价"), Required]
        [DataType(DataType.Currency)]
        public decimal Stockprice { get; set; }

        //合计
        [Display(Name = "合计"), Required]
        [DataType(DataType.Currency)]
        public decimal Total { get; set; }

        //入库数量 
        [Display(Name = "入库数量"), Required]
        public int Count { get; set; }

        //入库时间  
        [Display(Name = "入库时间"), Required]
        [DataType(DataType.Date)]
        public DateTime Datetime { get; set; }

        //审核人
        [Display(Name = "审核人")]
        public string Billproducer { get; set; }

        //负责人
        [Display(Name = "负责人"), Required]
        [UIHint("GetEmployee")]
        public string EmployeeName { get; set; }
        [Display(Name = "仓库号")]
        [UIHint("GetWarehouse"), Required]
        public string WarehouseName { get; set; }


        //提供商
        [Display(Name = "提供商")]
        [UIHint("GetProductProvider"), Required]
        public string ProductProviderName { get; set; }
        [Display(Name = "货品名")]
        [UIHint("GetProduct"), Required]
        public string ProductName { get; set; }
    }
}